package com.talkweb.securitycamera.common.interfaces.camera;

import ohos.media.image.Image;

/**
 * 摄像头相关操作接口
 *
 * @author : frank
 * @date : 2021/1/26 17:49
 */
public interface ICamera {

    /**
     * 调用摄像头拍照
     * capture a picture
     *
     * @return captured image
     */
    public Image capture();

    /**
     * 调用摄像头录像
     * start record video
     *
     * @return true if start record successfully,otherwise,return false
     */
    public boolean startRecord();


    /**
     * 停止调用摄像头录像
     * stop record video
     *
     * @return true if start record successfully,otherwise,return false
     */
    public boolean StopRecord();


    /**
     * 释放资源
     */
    public void recycle();
}
